﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CodePlex.Resourceful.Amazon.SimpleDB
{

    public class NameOnly
    {
        private readonly string _name;

        public NameOnly(string name)
        {
            _name = name;
           
        }

        public string Name { get { return _name; } }

    }

    public class NameValue : NameOnly
    {
        
        private readonly string _value;

        public NameValue(string name, string value)
            :base(name)
        {
            _value = value;
        }

       
        public string Value { get { return _value; } }
    }

    public class NewNameValue : NameValue
    {

        private readonly bool _isNew;

        public NewNameValue(string name, string value, bool isNew)
            : base(name,value)
        {
            _isNew = isNew;
        }


        public bool IsNew { get { return _isNew; } }
    }

    public class ItemAndAttributes
    {
        private readonly string _itemName;
        private readonly NameValue[] _attributes;

        public ItemAndAttributes(string itemName, params NameValue[] attributes)
        {
            _itemName = itemName;
            _attributes = attributes;
        }

        public string ItemName { get { return _itemName; } }
        public NameValue[] Attributes { get { return _attributes; } }

    }


}
